﻿<%@ Page Title="គ្រប់គ្រងអ្នកប្រើប្រាស់ - ហាងលក់ម្ហូបស៊ីវីល័យ" Language="C#" MasterPageFile="~/Backend/AdminLayout.master"
	AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Admin_User_Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="AdminElegantFood" Runat="Server">
	<div class="panel-heading">
		<h3 class="panel-title">
			<span class="glyphicon glyphicon-user"></span>គ្រប់គ្រងអ្នកប្រើប្រាស់
		</h3>
	</div>
	<div class="panel-body">
		<efx:CreateToolBar ID="toolbar" runat="server" DestinateUrl="Backend/User/Add.aspx" />
		<asp:Label ID="displayMessage" runat="server"></asp:Label>
		<asp:GridView ID="UserList" runat="server" GridLines="None" AutoGenerateColumns="false"
			CssClass="table table-striped" onrowdeleting="UserList_RowDeleting" 
			onrowediting="UserList_RowEditing" onrowupdating="UserList_RowUpdating" 
			onrowcancelingedit="UserList_RowCancelingEdit">
			<Columns>
				<asp:BoundField DataField="UserName" HeaderText="ឈ្មោះចូល" ReadOnly="true" />
				<asp:BoundField DataField="Email" HeaderText="អ៊ីម៉ែល" />
				<asp:TemplateField HeaderText="កិច្ចការ">
					<ItemTemplate>
						<asp:LinkButton ID="UserDelete" runat="server" CommandName="Delete" ToolTip="លុប" CommandArgument='<%# Eval("UserName") %>' OnClientClick='return confirm("Are you sure you want to delete?")'><span class="glyphicon glyphicon-trash"></span></asp:LinkButton>
						<asp:LinkButton ID="UserEdit" runat="server" CommandName="Edit" ToolTip="កែប្រែ"><span class="glyphicon glyphicon-edit"></span></asp:LinkButton>
					</ItemTemplate>
					<EditItemTemplate>
						<asp:LinkButton ID="UserUpdate" runat="server" CommandName="Update" ToolTip="រក្សាទុក"><span class="glyphicon glyphicon-floppy-disk"></span></asp:LinkButton>
						<asp:LinkButton ID="btnCancel" Text="Cancel" runat="server" CommandName="Cancel" ToolTip="បោះបង់"><span class="glyphicon glyphicon-remove-sign"></span></asp:LinkButton>
					</EditItemTemplate>
				</asp:TemplateField>
			</Columns>
		</asp:GridView>
	</div>
</asp:Content>